<?php
namespace app\admin\model;

use think\Model;

class Cate extends Base
{
    protected $name = 'cate';

    public function getTypeAttr($val){
        $type = [
            1 => '商品分类'
            , 3 => '次卡分类'
            , 4 => '福利卡分类'
            , 5 => '员工标签'
        ];

        return $type[$val];
    }
}